From: Adel Gadllah Date: Mon, 5 Oct 2009 21:53:50 +0000 (+0200) Subject: Run dialog: Make error message translatable X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~10776 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=3bf88b8988a5f8abb157decf412c8b33f3b4e7ff;p=gnome-shell.git Run dialog: Make error message translatable Allow the error message to be translated. https://bugzilla.gnome.org/show_bug.cgi?id=597422 --- diff --git a/js/ui/runDialog.js b/js/ui/runDialog.js index 1d6ae4abf..69c243426 100644 --- a/js/ui/runDialog.js +++ b/js/ui/runDialog.js @@ -170,7 +170,7 @@ RunDialog.prototype = { * We are only interested in the actual error, so parse that out. */ let m = /.+\((.+)\)/.exec(e); - let errorStr = "Execution of '" + command + "' failed:\n" + m[1]; + let errorStr = _("Execution of '%s' failed:").format(command) + "\n" + m[1]; this._errorMessage.set_text(errorStr); this._errorBox.show(); }